package com.qf.exception;

import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author lixu
 */
@ControllerAdvice
public class CustomerExceptionResolver {


    /**
     * 小红没有权限
     * @param e
     * @param model
     * @return
     */
    @ExceptionHandler(UnauthorizedException.class)
    public String handlerUnauthorizedException(UnauthorizedException e, Model model){

        return "/unauthorizedUrl.html";
    }
}
